package com.jvup.gameshow.dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;

import androidx.annotation.NonNull;

import com.jvup.common.support.base.BaseDialog;
import com.jvup.gameshow.R;
import com.jvup.gameshow.controller.MainController;
import com.jvup.gameshow.databinding.DialogUserAgreementBinding;

public class UserAgreementDialog extends BaseDialog {

    private final DialogUserAgreementBinding binding;

    public UserAgreementDialog(@NonNull Context context, MainController controller){
        super(context, R.style.CustomDialog_Translucent);
        binding = DialogUserAgreementBinding.inflate(LayoutInflater.from(context), null,false);
        binding.setMainController(controller);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(binding.getRoot());
        setCancelable(false);
    }

}
